<html>
<head><meta charset="utf-8"><title>issue-44056 · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html">issue-44056</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="147840455"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147840455" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147840455">(Nov 16 2018 at 19:36)</a>:</h4>
<p>So I get segfaults from <code>issue-44056.rs</code>:</p>
<div class="codehilite"><pre><span></span><span class="c1">// compile-pass</span>
<span class="c1">// only-x86_64</span>
<span class="c1">// no-prefer-dynamic</span>
<span class="c1">// compile-flags: -Ctarget-feature=+avx -Clto</span>
</pre></div>


<p>Example:</p>
<div class="codehilite"><pre><span></span>&gt; rustc +rust-5-stage2 issue-44056.rs -Ctarget-feature<span class="o">=</span>+avx -Clto
Segmentation fault <span class="o">(</span>core dumped<span class="o">)</span>
</pre></div>


<p>Does anybody else see this? It's pretty annoying. Prevents me from really running the full test suite.</p>



<a name="147840471"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147840471" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147840471">(Nov 16 2018 at 19:37)</a>:</h4>
<p>It has <em>something</em> to do with the AVX</p>



<a name="147841219"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841219" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841219">(Nov 16 2018 at 19:47)</a>:</h4>
<p>Hmm, I also see other failures:</p>
<div class="codehilite"><pre><span></span>---- [run-pass] run-pass/lto-many-codegen-units.rs stdout ----

error: test compilation failed although it shouldn&#39;t!
status: signal: 11
command: &quot;/home/nmatsakis/versioned/rust-5/build/x86_64-unknown-linux-gnu/stage2/bin/rustc&quot; &quot;/home/nmatsakis/versioned/rust-5/src/test/run-pass/lto-many-codegen-units.rs&quot; &quot;--target=x86_64-unknown-linux-g\
nu&quot; &quot;--error-format&quot; &quot;json&quot; &quot;-Zui-testing&quot; &quot;-o&quot; &quot;/home/nmatsakis/versioned/rust-5/build/x86_64-unknown-linux-gnu/test/run-pass/lto-many-codegen-units/a&quot; &quot;-Crpath&quot; &quot;-O&quot; &quot;-Zunstable-options&quot; &quot;-Lnative=/hom\
e/nmatsakis/versioned/rust-5/build/x86_64-unknown-linux-gnu/native/rust-test-helpers&quot; &quot;-C&quot; &quot;lto&quot; &quot;-C&quot; &quot;codegen-units=8&quot; &quot;-L&quot; &quot;/home/nmatsakis/versioned/rust-5/build/x86_64-unknown-linux-gnu/test/run-pass\
/lto-many-codegen-units/auxiliary&quot;
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------

------------------------------------------

thread &#39;[run-pass] run-pass/lto-many-codegen-units.rs&#39; panicked at &#39;explicit panic&#39;, tools/compiletest/src/runtest.rs:3282:9
</pre></div>



<a name="147841262"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841262" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841262">(Nov 16 2018 at 19:48)</a>:</h4>
<p><em>something</em> is weird :(</p>



<a name="147841495"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841495" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841495">(Nov 16 2018 at 19:51)</a>:</h4>
<p><span class="user-mention" data-user-id="116009">@nikomatsakis</span> I was also seeing <code>lto-many-codegen-units</code> fail on my inlining branch. I assumed it was due to my changes, but perhaps not?</p>



<a name="147841511"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841511" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841511">(Nov 16 2018 at 19:51)</a>:</h4>
<p>who can say :)</p>



<a name="147841525"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841525" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841525">(Nov 16 2018 at 19:52)</a>:</h4>
<p>I see far more failures than just that one</p>



<a name="147841579"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841579" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841579">(Nov 16 2018 at 19:52)</a>:</h4>
<p>all of them are tests with "lto" in the name though</p>



<a name="147841583"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841583" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841583">(Nov 16 2018 at 19:52)</a>:</h4>
<p>Here's the failures I was seeing:</p>
<div class="codehilite"><pre><span></span>    [run-pass] run-pass/associated-consts/associated-const-cross-crate-defaults.rs
    [run-pass] run-pass/associated-consts/associated-const-use-default.rs
    [run-pass] run-pass/backtrace-debuginfo.rs
    [run-pass] run-pass/cross-crate/xcrate_generic_fn_nested_return.rs
    [run-pass] run-pass/debuginfo-lto.rs
    [run-pass] run-pass/fat-lto.rs
    [run-pass] run-pass/generator/smoke.rs
    [run-pass] run-pass/issues/issue-11205.rs
    [run-pass] run-pass/lto-many-codegen-units.rs
    [run-pass] run-pass/lto-still-runs-thread-dtors.rs
    [run-pass] run-pass/optimization-fuel-0.rs
    [run-pass] run-pass/optimization-fuel-1.rs
    [run-pass] run-pass/panic-runtime/lto-abort.rs
    [run-pass] run-pass/panic-runtime/lto-unwind.rs
    [run-pass] run-pass/rfcs/rfc-2005-default-binding-mode/constref.rs
    [run-pass] run-pass/sepcomp/sepcomp-lib-lto.rs
    [run-pass] run-pass/stack-probes-lto.rs
    [run-pass] run-pass/ufcs-polymorphic-paths.rs
</pre></div>



<a name="147841585"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841585" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841585">(Nov 16 2018 at 19:52)</a>:</h4>
<div class="codehilite"><pre><span></span>failures:
    [run-pass] run-pass/debuginfo-lto.rs
    [run-pass] run-pass/fat-lto.rs
    [run-pass] run-pass/lto-many-codegen-units.rs
    [run-pass] run-pass/lto-still-runs-thread-dtors.rs
    [run-pass] run-pass/panic-runtime/lto-abort.rs
    [run-pass] run-pass/panic-runtime/lto-unwind.rs
    [run-pass] run-pass/sepcomp/sepcomp-lib-lto.rs
    [run-pass] run-pass/stack-probes-lto.rs
</pre></div>



<a name="147841597"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841597" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841597">(Nov 16 2018 at 19:52)</a>:</h4>
<p>got me :)</p>



<a name="147841629"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841629" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841629">(Nov 16 2018 at 19:53)</a>:</h4>
<p>Well that's useful to me. Now I know the LTO ones might not be my fault <span class="emoji emoji-1f606" title="laughing">:laughing:</span></p>



<a name="147841640"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841640" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841640">(Nov 16 2018 at 19:53)</a>:</h4>
<p>from <code>journalctl -b | tail</code>:</p>
<div class="codehilite"><pre><span></span>                                                            Stack trace of thread 15257:
                                                            #0  0x00007fd2221bf3c3 n/a (/home/nmatsakis/versioned/rust-5/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/codegen\
-backends/librustc_codegen_llvm-llvm.so)
Nov 16 14:38:23 athena.localdomain audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=&#39;unit=systemd-coredump@66-18182-0 comm=&quot;systemd&quot; exe=&quot;/usr/lib/sy\
stemd/systemd&quot; hostname=? addr=? terminal=? res=success&#39;
Nov 16 14:38:24 athena.localdomain abrt-server[19001]: Deleting problem directory ccpp-2018-11-16-14:38:23.764102-13200 (dup of ccpp-2018-11-16-09:53:58.514123-11457)
Nov 16 14:38:24 athena.localdomain abrt-notification[19441]: Process 11457 (rustc) crashed in ??()
</pre></div>



<a name="147841642"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841642" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841642">(Nov 16 2018 at 19:53)</a>:</h4>
<p>some kind of crash in LLVM</p>



<a name="147841661"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147841661" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147841661">(Nov 16 2018 at 19:53)</a>:</h4>
<p><span class="user-mention" data-user-id="119009">@eddyb</span> <span class="user-mention" data-user-id="123586">@nagisa</span> any thoughts on what might cause this? <span class="emoji emoji-1f446" title="point up">:point_up:</span></p>



<a name="147859207"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147859207" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147859207">(Nov 17 2018 at 02:00)</a>:</h4>
<p>I have a number of tests that fail for me locally as well: <a href="#narrow/stream/131828-t-compiler/subject/local-ui-test-failures" title="#narrow/stream/131828-t-compiler/subject/local-ui-test-failures">https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/subject/local-ui-test-failures</a></p>



<a name="147859257"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147859257" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147859257">(Nov 17 2018 at 02:02)</a>:</h4>
<p>So one thing that could be a cause is that you perhaps forgot to update your submodules? Another – there is that LLVM stamp file which prevents LLVM from rebuilding even if submodule is updated in some cases… and yet another – perhaps your config.toml is "too" different from the CI’s?</p>



<a name="147859259"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147859259" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147859259">(Nov 17 2018 at 02:02)</a>:</h4>
<p>to be clear, I haven’t looked too closely at any of those.</p>



<a name="147869781"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147869781" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147869781">(Nov 17 2018 at 08:30)</a>:</h4>
<p>run <code>rm build/*/llvm/llvm-finished-building</code> - if you're lucky, it will trigger a partial rebuild and only a few C++ files will need to be recompiled</p>



<a name="147882139"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882139" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882139">(Nov 17 2018 at 15:56)</a>:</h4>
<p>so I tried a complete rebuild</p>



<a name="147882140"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882140" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882140">(Nov 17 2018 at 15:56)</a>:</h4>
<p>building LLVM fails like so:</p>
<div class="codehilite"><pre><span></span>/home/nmatsakis/versioned/rust-2/src/llvm/include/llvm/CodeGen/SchedulerRegistry.h:40:52: warning: cast between incompatible function types from ‘llvm::RegisterScheduler::FunctionPassCtor’ {aka ‘llvm::Sc\
heduleDAGSDNodes* (*)(llvm::SelectionDAGISel*, llvm::CodeGenOpt::Level)’} to ‘llvm::MachinePassCtor’ {aka ‘void* (*)()’} [-Wcast-function-type]
   : MachinePassRegistryNode(N, D, (MachinePassCtor)C)
                                                    ^
[ 84%] Linking CXX static library ../../libLLVMX86CodeGen.a
[ 84%] Built target LLVMX86CodeGen
gmake: *** [Makefile:152: all] Error 2
thread &#39;main&#39; panicked at &#39;
command did not execute successfully, got: exit code: 2
</pre></div>



<a name="147882141"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882141" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882141">(Nov 17 2018 at 15:57)</a>:</h4>
<p>this happen to me basically every time; if I start again, it will pass</p>



<a name="147882146"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882146" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882146">(Nov 17 2018 at 15:57)</a>:</h4>
<p>I always shrugged it off but now I think maybe it's connected</p>



<a name="147882155"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882155" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882155">(Nov 17 2018 at 15:57)</a>:</h4>
<p>strangely, nothing there shows up in <code>journalctl</code></p>



<a name="147882198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882198">(Nov 17 2018 at 15:58)</a>:</h4>
<p>I thnk this is the actual error:</p>
<div class="codehilite"><pre><span></span>/usr/include/c++/8/bits/basic_string.h: In constructor ‘std::__cxx11::basic_string&lt;_CharT, _Traits, _Alloc&gt;::_Alloc_hider::_Alloc_hider(std::__cxx11::basic_string&lt;_CharT, _Traits, _Alloc&gt;::pointer, _Allo\
c&amp;&amp;)’:
/usr/include/c++/8/bits/basic_string.h:149:4: internal compiler error: in cp_parser_lookup_name, at cp/parser.c:26145
  : allocator_type(std::move(__a)), _M_p(__dat) { }
    ^~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See &lt;http://bugzilla.redhat.com/bugzilla&gt; for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
</pre></div>



<a name="147882201"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882201" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882201">(Nov 17 2018 at 15:58)</a>:</h4>
<p>maybe upgrading to FC29 actually <em>will</em> help</p>



<a name="147882211"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882211" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882211">(Nov 17 2018 at 15:59)</a>:</h4>
<p>What is your $CC/$CXX?</p>



<a name="147882257"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882257" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882257">(Nov 17 2018 at 16:00)</a>:</h4>
<p>can't tell you right now, rebooting :)</p>



<a name="147882271"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882271" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882271">(Nov 17 2018 at 16:00)</a>:</h4>
<p>I found that compiling with $CC=clang/$CXX=clang++ is significantly more involved and error prone compared to $CC=gcc/$CXX=g++</p>



<a name="147882328"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882328" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882328">(Nov 17 2018 at 16:02)</a>:</h4>
<p>I think I am using gcc</p>



<a name="147882329"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882329" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882329">(Nov 17 2018 at 16:02)</a>:</h4>
<p>unless rust is picking clang for me</p>



<a name="147882346"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882346" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882346">(Nov 17 2018 at 16:03)</a>:</h4>
<p>what’s the version?</p>



<a name="147882349"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882349" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882349">(Nov 17 2018 at 16:03)</a>:</h4>
<p>I can confirm that 7.3.0 and 8.2.1 definitely work.</p>



<a name="147882394"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882394" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882394">(Nov 17 2018 at 16:04)</a>:</h4>
<p>8.2.1</p>



<a name="147882396"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882396" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882396">(Nov 17 2018 at 16:04)</a>:</h4>
<p>gcc version 8.2.1 20181105 (Red Hat 8.2.1-5) (GCC)</p>



<a name="147882399"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882399" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882399">(Nov 17 2018 at 16:04)</a>:</h4>
<p>currently upgrading, though, which I wanted to do anyway</p>



<a name="147882421"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147882421" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147882421">(Nov 17 2018 at 16:05)</a>:</h4>
<p>everybody knows the best way to debug a problem is to add more variables, after all</p>



<a name="147883183"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147883183" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147883183">(Nov 17 2018 at 16:29)</a>:</h4>
<p><span class="user-mention" data-user-id="116009">@nikomatsakis</span> still successfully getting through compilation into linking (with 8.2.0 this time)</p>



<a name="147919123"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919123" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919123">(Nov 18 2018 at 14:35)</a>:</h4>
<p>well, FC29 solved my immediate problems, but I still get irregular crashes from <strong>stage0 rustc</strong>:</p>
<div class="codehilite"><pre><span></span>[54386.877422] rustc[13315]: segfault at 10 ip 00007f5e74719540 sp 00007f5d8dbfd128 error 4 in librustc_codegen_llvm-llvm.so[7f5e725a8000+24a7000]
[54386.877431] Code: cf 41 83 c1 01 21 cf 48 8d 34 7f 49 8d 14 f2 49 8b 34 f2 4c 39 f6 74 90 eb d3 4d 85 c0 49 0f 45 d0 eb 99 cc cc cc cc cc cc cc &lt;8a&gt; 0e 89 c8 04 fc 3c 1a 76 1f 89 ca 80 c2 ff 31 c0 80 \
fa 02 48 0f
[55694.589465] rustc[26736]: segfault at 8 ip 00007f2c1943f031 sp 00007f2c07fc00f0 error 4 in libc-2.28.so[7f2c193da000+14d000]
[55694.589474] Code: 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 53 48 83 ec 10 48 8b 05 d0 8e 13 00 48 8b 00 48 85 c0 0f 85 84 00 00 00 48 85 ff 74 6f &lt;48&gt; 8b 47 f8 48 8d 77 f0 a8 02 75 3b 48 8b 15 24 8d 13 \
00 64 48 83
</pre></div>


<p>the core dumps are getting truncated, I'm not sure how to change that:</p>
<div class="codehilite"><pre><span></span>Sun 2018-11-18 07:00:16 EST   12843  1000  1000  11 truncated /home/nmatsakis/versioned/rust-2/build/x86_64-unknown-linux-gnu/stage0/bin/rustc
Sun 2018-11-18 07:22:06 EST   24592  1000  1000  11 truncated /home/nmatsakis/versioned/rust-2/build/x86_64-unknown-linux-gnu/stage1/bin/rustc
</pre></div>



<a name="147919165"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919165" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919165">(Nov 18 2018 at 14:36)</a>:</h4>
<p><span class="user-mention" data-user-id="116009">@nikomatsakis</span> <code>ulimit -c 0</code> I think?</p>



<a name="147919167"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919167" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919167">(Nov 18 2018 at 14:36)</a>:</h4>
<p>the ulimit is already set to unlimited</p>



<a name="147919168"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919168" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919168">(Nov 18 2018 at 14:36)</a>:</h4>
<div class="codehilite"><pre><span></span>&gt; <span class="nb">ulimit</span> -c
unlimited
</pre></div>



<a name="147919229"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919229" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919229">(Nov 18 2018 at 14:39)</a>:</h4>
<p><span class="user-mention" data-user-id="116009">@nikomatsakis</span>  Hm, what about <code>cat /proc/sys/kernel/core_pattern</code>? Maybe that's cutting it somehow?</p>



<a name="147919270"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919270" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919270">(Nov 18 2018 at 14:40)</a>:</h4>
<div class="codehilite"><pre><span></span>|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e
</pre></div>



<a name="147919278"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919278" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919278">(Nov 18 2018 at 14:40)</a>:</h4>
<p>I just have <code>core</code> in that file, maybe systemd has some special behavior?</p>



<a name="147919281"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919281" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919281">(Nov 18 2018 at 14:41)</a>:</h4>
<p>Maybe also check core_pipe_limit in that same directory?</p>



<a name="147919293"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919293" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919293">(Nov 18 2018 at 14:41)</a>:</h4>
<p>plausible. <code>core_pipe_limit</code> is set to <code>0</code></p>



<a name="147919300"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919300" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919300">(Nov 18 2018 at 14:41)</a>:</h4>
<p>I'm not really familiar with all this machinery</p>



<a name="147919344"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919344" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919344">(Nov 18 2018 at 14:42)</a>:</h4>
<p>Yeah, me neither -- I know historically if that file didn't  contain just <code>core</code> or something then I'd end up with no logs whatsoever</p>



<a name="147919359"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919359" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919359">(Nov 18 2018 at 14:43)</a>:</h4>
<p>from <code>/etc/systemd/coremap.conf</code>:</p>
<div class="codehilite"><pre><span></span>[Coredump]
#Storage=external
#Compress=yes
#ProcessSizeMax=2G
#ExternalSizeMax=2G
#JournalSizeMax=767M
#MaxUse=
#KeepFree=
</pre></div>



<a name="147919360"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919360" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919360">(Nov 18 2018 at 14:43)</a>:</h4>
<p>perhaps those limits are the problem</p>



<a name="147919458"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919458" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919458">(Nov 18 2018 at 14:46)</a>:</h4>
<p>(upped to 8G, we'll see)</p>



<a name="147919510"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919510" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919510">(Nov 18 2018 at 14:49)</a>:</h4>
<p>Does seem plausible</p>



<a name="147919657"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919657" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919657">(Nov 18 2018 at 14:54)</a>:</h4>
<p>I should probably file an issue, or search for others</p>



<a name="147919924"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/issue-44056/near/147919924" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/issue-44056.html#147919924">(Nov 18 2018 at 15:04)</a>:</h4>
<p>at least I can now build LLVM w/o mysterious crashes, it seems</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>